<template>
    <div class="school">
        <h2>名称：{{ name }}</h2>
        <h2>地址：{{ address }}</h2>
    </div>
</template>
<script>
export default {
    name: 'School',
    data() {
        return {
            name: '上海复旦',
            address: '上海',
        }
    },
}
</script>
<!-- 加上scoped属性，这个样式只作用于当前页面 -->
<style scoped>
.school {
    background-color: skyblue;
}
</style>